﻿using Basic.WxApiRemoteModel;
using Basic.WxApiRemoteModel.WxFilter.Model;
using SqlSugar;

namespace Basic.WxModel.DB
{
    [SugarTable("WxMsgForwardLog")]
    public class DBWxForwardLog
    {
        [SugarColumn(IsPrimaryKey = true)]
        public long Id
        {
            get;
            set;
        }
        /// <summary>
        /// 微信消息ID
        /// </summary>
        public string MsgId
        {
            get;
            set;
        }
        /// <summary>
        /// 目的地
        /// </summary>
        public string SystemType
        {
            get;
            set;
        }
        /// <summary>
        /// 集群ID
        /// </summary>
        public long RpcMerId
        {
            get;
            set;
        }
        /// <summary>
        /// 微信商户AppId
        /// </summary>
        public string WxAppId
        {
            get;
            set;
        }
        /// <summary>
        /// 平台AppId
        /// </summary>
        public string AppId
        {
            get;
            set;
        }

        /// <summary>
        /// 事件类型
        /// </summary>
        public string MsgType { get; set; }

        /// <summary>
        /// 是否为事件
        /// </summary>
        public bool IsEvent { get; set; }

        /// <summary>
        /// 转发类型
        /// </summary>
        public WxForwardType ForwardType
        {
            get;
            set;
        }
        /// <summary>
        /// 转发指令
        /// </summary>
        public string Direct
        {
            get;
            set;
        }
        [SugarColumn(IsJson = true)]
        public ReplySet Reply
        {
            get;
            set;
        }
        /// <summary>
        /// 是否成功
        /// </summary>
        public bool IsSuccess { get; set; }

        /// <summary>
        /// 错误码
        /// </summary>
        public string ErrorCode { get; set; }

        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime AddTime { get; set; }
    }
}
